import React,{useState} from 'react'
import TitleCounter from './components/TitleCounter'
export default function App() {
  const [flag,setFlag]=useState(true)
  return (
    <div>
     {flag===true&&<TitleCounter></TitleCounter>}
     <button onClick={()=>{
      setFlag(!flag)
     }}>switch</button>
    </div>  
  )
}
